#include<stdio.h>
int main(){
	int n,count=1;
	scanf("%d",&n);
	for(int i=1;i<n;i++){
		count=(count+1)*2;
	}
	printf("%d",count);
	return 0;
}
